// 封装几个基于localStorage的存取方法
const TOKENKEY = 'hmtt-key'

export function setToken (token) {
  return localStorage.setItem(TOKENKEY, token)
}

export function getToken () {
  return localStorage.getItem(TOKENKEY)
}

export function removeToken () {
  return localStorage.removeItem(TOKENKEY)
}
